package com.qf.gitadmin.manager.service.impl;

import com.qf.entity.Manager;
import com.qf.gitadmin.manager.mapper.ManagerMapper;
import com.qf.gitadmin.manager.service.ManagerService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author XueSong
 * @Date 10/08
 * @Desc
 */
@Service
public class ManagerServiceImpl implements ManagerService {
    @Resource
    ManagerMapper managerMapper;

    @Override
    public List<Manager> selectAll() {
        List<Manager> managers = managerMapper.selectAll();
        return managers;
    }

    @Override
    public int insertManager(Manager manager) {
        return managerMapper.insertManager(manager);
    }
}
